/*
 * Copyright (c) 2017,安徽皖通科技股份有限公司 All rights reserved.
 */

package com.wttech.dzzf.process.service.fill;

		import com.wtkj.vo.dzzf.base.kfwd.CardInfo;
		import com.wttech.dzzf.process.dao.FillMissingDataDao;
		import com.wttech.dzzf.process.dao.TransferUserInfoDao;
		import com.wttech.dzzf.process.service.base.BaseInfoService;
		import com.wttech.dzzf.process.util.BusinessUtils;
		import org.apache.commons.collections.CollectionUtils;
		import org.slf4j.Logger;
		import org.slf4j.LoggerFactory;
		import org.springframework.context.ApplicationContext;
		import org.springframework.context.support.ClassPathXmlApplicationContext;
		import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
		import org.springframework.stereotype.Service;

		import javax.annotation.Resource;
		import java.util.ArrayList;
		import java.util.List;
		import java.util.concurrent.Future;

		import static com.wttech.dzzf.process.constant.UserConstants.DEFAULT_PROCESS_NUM;

/**
 * 填充缺失信息
 *
 * @author MaShibo
 * @date 2017/12/11.
 */
@Service
public class FillMissingInfosService {

	private static final Logger LOGGER = LoggerFactory.getLogger(FillMissingInfosService.class);


	@Resource
	private FillCardInfosService fillCardInfosService;


	@Resource
	private FillObuInfosService fillObuInfosService;

	@Resource
	private ThreadPoolTaskExecutor executor;

	private void process() {
		fillCardInfosService.fill();
		fillObuInfosService.fill();
		executor.shutdown();
	}

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		FillMissingInfosService service = context.getBean(FillMissingInfosService.class);
		service.process();
	}
}
